package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;

/**
 * @author 林道样
 * @date 2020-03-05 15:20
 */
public interface UserService {
    User findByUsername(String username);
    PageResult pageQuery(QueryPageBean queryPageBean);
    List<Role> findAllRole();
    void add(User user,Integer[] roleIds);
    List<Integer> findRoleIdsByUserId(Integer id);
    User findById(Integer id);
    void delete(Integer id);
    void edit(User user,Integer[] roleIds);
}
